package com.zb.zeus.system.api.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zb.zeus.common.core.utils.DateUtils;


import java.util.Date;

import javax.validation.constraints.NotBlank;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 企业微信发消息数据基类
 * @author liangfan
 * @date 2021/07/08 18:38
 **/

@Data
public abstract class BaseWxMsgDTO {

   /**
    * 应用id
    */
   @ApiModelProperty(value = "企业微信 agentId",required = true)
   @NotBlank(message = "agentId不能为空")
   private String agentId;

   /**
    * 发送时间，为空立即发送
    */
   @ApiModelProperty(value = "发送时间,yyyy-MM-dd HH:mm:ss",notes = "不传为即时发送。")
   @JsonFormat(pattern = DateUtils.YYYY_MM_DD_HH_MM_SS)
   private Date sendDate;

   /**
    * 远程调用服务名称
    */
   @ApiModelProperty(value = "服务名称不能为空",required = true)
   @NotBlank(message = "服务名称不能为空")
   private String clientName;

   /**
    * 消息id
    */
   @NotBlank(message = "消息ID不能为空")
   @ApiModelProperty(value = "消息ID",required = true)
   private String clientMsgId;

   /**
    * 校验数据
    * @return
    */
   public String checkData(){

      return null;
   }
}
